<template>
  <div>
    <ContentSwiper />
    <ContentHrefInfo />
    <ContentTabsImg /> 
    <ContentNewsImg ref="newsImg" :imgCount="imgCount" /> 
    <ContentIntroduceVideo /> 
  </div>
</template>

<script setup lang="ts">
  
  useHead({
    title: '新盛合环保设备首页',
    meta: [
      {
        name: 'keywords',
        content: '玻璃钢化粪池,玻璃钢管道,玻璃钢冷却塔,玻璃钢电缆管,一体化提升泵站,玻璃钢冷却塔,格栅,警示牌,标志桩,风机,拉挤型材,新盛合环保'
      },
      {
        name: 'description',
        content: '新盛合环保设备有限公司，是一家集玻璃钢化粪池、玻璃钢管道、冷却塔、电缆管、一体化泵站、格栅、警示牌、标志桩、风机、拉挤型材于一体的全方位玻璃钢制品源头厂家，总经理：周爱友，电话：18999931669'
      },
      {
        name: 'author',
        content: '新盛合环保设备'
      },
      {
        name: 'copyright',
        content: 'Copyright © 2024 新盛合环保设备'
      },
      {
        name: 'application-name',
        content: '新盛合环保设备'
      },

      // {
      //   name: 'viewport',
      //   content: 'width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0'
      // },
      // {
      //   name: 'robots',
      //   content: 'index,follow'
      // },
      // {
      //   name: 'referrer',
      //   content: 'no-referrer'
      // },
      // {
      //   name: 'generator',
      //   content: 'Vue.js'
      // },
    ]
  })

  import { throwError } from 'element-plus/es/utils/error.mjs';
  import { useRoute } from 'vue-router'
  const route = ref(useRoute());
  console.log("当前路由：",route.value.name);

  let imgCount=ref(0)
watchEffect(() => {
  console.log("路由变化了",route)
  imgCount.value+=1
})

  // defineProps({
  //   language: {
  //     type: String,
  //     default: 'zh'
  //   },
  //   productTypes: {
  //     type: Array,
  //     default: () => []
  //   }

  // })
  // watch(() => proxy.language, (newVal, oldVal) => {
  // console.log("newVal", newVal)
  
  // },{ immediate: true, deep: true })
  // console.log("index接受layout传过来的数据：",language,productTypes)
  
</script>

<style lang="scss">

 
    

</style>